public async Task <IResultModel> Update(TagUpdateModel model) { var entity = await _repository.GetAsync(model.Id); if (entity == null) { return(ResultModel.NotExists); } _mapper.Map(model, entity); //if (await _repository.Exists(entity)) //{ //return ResultModel.HasExists; //} var result = await _repository.UpdateAsync(entity); return(ResultModel.Result(result)); }
public Task<IResultModel> Update(TagUpdateModel model) { return _service.Update(model); }
public async Task <CommonResponse> UpdateTags(TagUpdateModel tagUpdateModel) { return(await _tagrepository.UpdateTags(tagUpdateModel)); }
public IActionResult UpdateTag([FromBody] TagUpdateModel model) { var updateResponse = _dbHelper.UpdateObject <TagUpdateModel, Tags>(model, model.TagId); return(ApiResult(updateResponse)); }
public async Task <CommonResponse> UpdateTags(TagUpdateModel tagUpdateModel) { return(await ExecuteAll <CommonResponse>("Glo.UpdateTagsInCollection", tagUpdateModel)); }