/// <summary> /// Bizs the update ticket. /// </summary> /// <param name="bizTicket">The biz ticket.</param> /// <returns>System.String.</returns> public string BizUpdateTicket(BizTicket bizTicket) { return(BizCall( new Action(() => { crudFuntion.UpdateTicket(bizTicket); } ) )); }
/// <summary> /// Bizs the insert ticket. /// </summary> /// <param name="bizTicket">The biz ticket.</param> /// <returns>System.String.</returns> public string BizInsertTicket(BizTicket bizTicket) { return(BizCall( new Action(() => { crudFuntion.InsertTicket(bizTicket); } ) )); }
/// <summary> /// Datas the ticket to biz ticket. /// </summary> /// <param name="DataTicket">The data ticket.</param> /// <returns>BizTicket.</returns> public static BizTicket DataTicketToBizTicket(this SYSGetTicket_Result DataTicket) { BizTicket bizTicket = new BizTicket { Id = DataTicket.Id, UserId = 0, EventualityId = 0, StatusId = 0, Nombre = DataTicket.Nombre, EventualityName = DataTicket.EventualityName, StatusName = DataTicket.StatusName, CreationDate = DataTicket.CreationDate, ModificationDate = DataTicket.ModificationDate, }; return(bizTicket); }
/// <summary> /// Bizs the ticket to web ticket. /// </summary> /// <param name="DataTicket">The data ticket.</param> /// <returns>WebTicket.</returns> public static WebTicket BizTicketToWebTicket(this BizTicket DataTicket) { WebTicket webTicket = new WebTicket { Id = DataTicket.Id, UserId = DataTicket.UserId, EventualityId = DataTicket.EventualityId, StatusId = DataTicket.StatusId, Nombre = DataTicket.Nombre, EventualityName = DataTicket.EventualityName, StatusName = DataTicket.StatusName, CreationDate = DataTicket.CreationDate, ModificationDate = DataTicket.ModificationDate, }; return(webTicket); }