Beispiel #1
0
 public IResult Update(int cityId)
 {
     _cityDal.Update(new City {
         Id = cityId
     });
     return(new SuccessResult());
 }
Beispiel #2
0
        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));
 }
Beispiel #5
0
 public void Update(City city)
 {
     _cityDal.Update(city);
 }
Beispiel #6
0
 public City Update(City entity)
 {
     return(_CityDal.Update(entity));
 }
 public IResult Update(City city)
 {
     _cityDal.Update(city);
     return(new SuccessDataResult <City>(Messages.DataAdded));
 }
Beispiel #8
0
 public IResult Update(City city)
 {
     _cityDal.Update(city);
     return(new SuccessResult(BusinessMessages.CityUpdated));
 }
Beispiel #9
0
 public IResult Update(City city)
 {
     _cityDal.Update(city);
     return(new SuccessResult());
 }
Beispiel #10
0
 public void Update(City entity)
 {
     _cityDal.Update(entity);
 }
Beispiel #11
0
 public City UpdateCity(City city)
 {
     _cityDal.Update(city);
     return(city);
 }