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"); } }
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!!"); } } }