public GrantPermissionDto DeleteGrantPermission(int id) { var existed = this.GrantPermissionExists(id); if (!existed) { return(null); } var grant = _repo.GetById(id); int res = _repo.Delete(grant); if (res <= 0) { return(null); } return(_mapper.Map <GrantPermissionDto>(grant)); }
public int Delete(string sqlQuery, DynamicParameters param, CommandType commandType) { return(_grantPermissionRepository.Delete(sqlQuery, param, commandType)); }