public async Task<ResultUpdateOutput> CreatePermission(CreatePermissionInput input)
 {
     var result = new ResultUpdateOutput
                  {
         Status = 1
     };
     int test = await _permissionBll.InsertPermission(input);
     if (test > 0)
         result.Status = 0;
     return result;
 }
예제 #2
0
 public Task<int> InsertPermission(CreatePermissionInput input)
 {
     Mapper.CreateMap<CreatePermissionInput, Permission>();
     return Task.FromResult(_permissionTable.Insert(Mapper.Map<Permission>(input)));
 }