Пример #1
0
        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);
                }));
            }
        }