public IHttpActionResult Delete(MasterUserInstitutionRole data) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } try { _userInstitutionRoleService.Delete(data); return(Ok()); } catch (Exception ex) { return(BadRequest(ex.Message)); } }
public void Delete(MasterUserInstitutionRole data) { _userInstitutionRoleRepository.Delete(data); _userInstitutionRoleRepository.Commit(); }