public RequestController()
 {
     _requestDomain          = new RequestDomain();
     _agencyDomain           = new AgencyDomain();
     _serviceITSupportDomain = new ServiceITSupportDomain();
     _serviceItemDomain      = new ServiceItemDomain();
     _deviceDomain           = new DeviceDomain();
     _ticketDomain           = new TicketDomain();
 }
Beispiel #2
0
 public static TicketViewModel Create(TicketDomain ticketDomain)
 {
     return(new TicketViewModel
     {
         Id = ticketDomain.Id,
         Title = ticketDomain.Title,
         Description = ticketDomain.Description,
         AgentReply = ticketDomain.AgentReply,
         AssignedAgent = ticketDomain.AssignedAgent,
         Owner = ticketDomain.Owner,
         OwnerId = ticketDomain.OwnerId,
         AssignedAgentId = ticketDomain.AssignedAgentId,
         TicketState = ticketDomain.TicketState,
         TicketPriority = ticketDomain.TicketPriority,
         ProductId = ticketDomain.ProductId,
         Product = ticketDomain.Product
     });
 }
Beispiel #3
0
 public static TicketViewModel CreateTicketViewModel(this TicketDomain ticketDomain)
 {
     return(Create(ticketDomain));
 }
Beispiel #4
0
 public RequestController()
 {
     _requestDomain        = new RequestDomain();
     _ticketDomain         = new TicketDomain();
     _requestHistoryDomain = new RequestHistoryDomain();
 }
 public static Ticket CreateTicket(this TicketDomain ticketDomain)
 {
     return(Create(ticketDomain));
 }