public String UnAllocateClassRoom()
 {
     if (classRoomGateway.UnAllocateClassRoom() > 0)
     {
         return("UnAllocated Sucessfully");
     }
     return("Failed to Unallocate");
 }
Ejemplo n.º 2
0
        public string[] UnAllocateClassRoom()
        {
            int affectedRow = _classRoomGateway.UnAllocateClassRoom();

            if (affectedRow > 0)
            {
                return new string[] { "alert-success", "Success!", "All class room unallocated." }
            }
            ;
            return(new string[] { "alert-danger", "Error!", "Class room are not allocated." });
        }
    }
 public string UnAllocateClassRoom()
 {
     if (aClassRoomGateway.IsRoomUnallocated())
     {
         return("Room Already unallocated");
     }
     else
     {
         int rowAffected = aClassRoomGateway.UnAllocateClassRoom();
         if (rowAffected > 0)
         {
             return("Room unallocated");
         }
         else
         {
             return("Room unallocation falied");
         }
     }
 }