public IResult Update(int cityId) { _cityDal.Update(new City { Id = cityId }); return(new SuccessResult()); }
public bool Update(City city) { bool result = _cityDal.Update(city); if (result) { return(true); } return(false); }
public async Task <CityForReturnDto> Update(CityForCreationDto updateDto) { var checkById = await cityDal.GetAsync(x => x.Id == updateDto.Id); if (checkById == null) { throw new RestException(HttpStatusCode.BadRequest, new { NotFound = Messages.NotFound }); } var mapForUpdate = mapper.Map(updateDto, checkById); await cityDal.Update(mapForUpdate); return(mapper.Map <City, CityForReturnDto>(mapForUpdate)); }
public IResult Update(City entity) { _cityDal.Update(entity); return(new SuccessResult(Messages.CityUpdated)); }
public void Update(City city) { _cityDal.Update(city); }
public City Update(City entity) { return(_CityDal.Update(entity)); }
public IResult Update(City city) { _cityDal.Update(city); return(new SuccessDataResult <City>(Messages.DataAdded)); }
public IResult Update(City city) { _cityDal.Update(city); return(new SuccessResult(BusinessMessages.CityUpdated)); }
public IResult Update(City city) { _cityDal.Update(city); return(new SuccessResult()); }
public void Update(City entity) { _cityDal.Update(entity); }
public City UpdateCity(City city) { _cityDal.Update(city); return(city); }