Exemple #1
0
 public ControllerLayer.ReserveDTO Translate(ReserveDTO reserve)
 {
     try
     {
         if (reserve.RID == null)
         {
             return(new ControllerLayer.ReserveDTO(
                        reserve.UID,
                        reserve.MediaID,
                        reserve.ReservedDate
                        ));
         }
         else
         {
             return(new ControllerLayer.ReserveDTO((int)reserve.RID));
         }
     }
     catch (Exceptions.ValidationException e)
     {
         throw new System.Web.HttpParseException(e.Message);
     }
 }
Exemple #2
0
 public int AddReserved(UserWSDTO user, ReserveDTO record)
 {
     throw new NotImplementedException();
 }