public async Task<ResultUpdateOutput> UpdatePermission(UpdatePermissionInput input)
 {
     var result = new ResultUpdateOutput
                  {
         Status = 1
     };
     int test = await _permissionBll.UpdatePermission(input);
     if (test > 0)
         result.Status = 0;
     return result;
 }
Пример #2
0
 public Task<int> UpdatePermission(UpdatePermissionInput input)
 {
     Mapper.CreateMap<UpdatePermissionInput, Permission>();
     return Task.FromResult(_permissionTable.Update(Mapper.Map<Permission>(input)));
 }