public async Task <int> EditAsync(CateoryDTO dto) { var model = ObjectExtend.Mapper <CateoryEntity, CateoryDTO>(dto); using (ICateoryService rdevSvc = new CateoryService()) { return(await Task.Run(() => { return rdevSvc.EditAsync(model); })); } }