public IHttpActionResult PostRoleAccess([FromBody] RoleFeatureAccess roleAccess) { _service.Add(roleAccess); _service.Save(); return(Ok()); }
public void Update(RoleFeatureAccess roleAccess) { roleAccessRepository.Update(roleAccess); }
public IHttpActionResult PutRoleAccess(int roleId, int featureId, [FromBody] RoleFeatureAccess roleAccess) { _service.Update(roleAccess); _service.Save(); return(Ok()); }
public void Add(RoleFeatureAccess roleAccess) { roleAccessRepository.Add(roleAccess); }