orgnanization onboarding stepper form changes, code refactor for custom data-table grid
This commit is contained in:
@@ -6,7 +6,8 @@ import { CITY_ENDPOINTS } from './city.endpoints';
|
||||
import {
|
||||
CityDto,
|
||||
CreateCityRequest,
|
||||
UpdateCityRequest
|
||||
UpdateCityRequest,
|
||||
UpdateCityStatusRequest
|
||||
} from '../models/city.model';
|
||||
import {
|
||||
DataTableQuery,
|
||||
@@ -40,6 +41,14 @@ export class CityService {
|
||||
return this.http.put<CityDto>(CITY_ENDPOINTS.update(id), request);
|
||||
}
|
||||
|
||||
updateStatus(id: string, request: UpdateCityStatusRequest): Observable<CityDto> {
|
||||
return this.http.patch<CityDto>(CITY_ENDPOINTS.changeStatus(id), request);
|
||||
}
|
||||
|
||||
delete(id: string): Observable<void> {
|
||||
return this.http.delete<void>(CITY_ENDPOINTS.delete(id));
|
||||
}
|
||||
|
||||
getCityById(id: string): Observable<CityDto> {
|
||||
return this.http.get<CityDto>(CITY_ENDPOINTS.getById(id));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user