public IHttpActionResult PostRoleAccess([FromBody] RoleFeatureAccess roleAccess)
 {
     _service.Add(roleAccess);
     _service.Save();
     return(Ok());
 }
예제 #2
0
 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());
 }
예제 #4
0
 public void Add(RoleFeatureAccess roleAccess)
 {
     roleAccessRepository.Add(roleAccess);
 }