예제 #1
0
 public string AllocateNewClassRoom(ClassRoomAllocation classRoomAllocation)
 {
     if (!_classRoomGateway.IsAllocationPossible(classRoomAllocation))
     {
         return("Cannot Possible");
     }
     else
     {
         int rowAffected = _classRoomGateway.AllocateNewClassRoom(classRoomAllocation);
         return(rowAffected > 0 ? "Class Room Allocated Successfully" : "Failed");
     }
 }
예제 #2
0
        public string AllocateNewClassRoom(ClassRoomAllocation classRoomAllocation)
        {
            if (!aClassRoomGateway.IsAllocationPossible(classRoomAllocation))
            {
                return("Not Possible");
            }
            else
            {
                int rowAffected = aClassRoomGateway.AllocateNewClassRoom(classRoomAllocation);

                if (rowAffected > 0)
                {
                    return("Class Room Allocated Successfully!!");
                }
                else
                {
                    return("Allocated Failed!!");
                }
            }
        }