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); } }
public int AddReserved(UserWSDTO user, ReserveDTO record) { throw new NotImplementedException(); }