public GrantPermissionDto UpdateGrantPermission(GrantPermissionDto grantPermissionDto) { var grant = _mapper.Map <GrantPermission>(grantPermissionDto); int res = _repo.Update(grant); if (res <= 0) { return(null); } return(grantPermissionDto); }
public int Update(string sqlQuery, DynamicParameters param, CommandType commandType) { return(_grantPermissionRepository.Update(sqlQuery, param, commandType)); }