Esempio n. 1
0
 public HttpResponseMessage SetStudentInactiveInBranch([FromUri] int studentId, [FromUri] int branchId)
 {
     try
     {
         int update = BranchStudentManager.SetStudentInactiveInBranch(studentId, branchId);
         return(Request.CreateResponse(HttpStatusCode.OK, update));
     }
     catch (Exception ex)
     {
         return(Request.CreateErrorResponse(HttpStatusCode.BadRequest, $"Failed to update student {studentId} to active in this branch"));
     }
 }