Example #1
0
        public SupportTicket CreateNewTicket(int SiteId, int StateId, string Description, int Priority)
        {
            ISupportTicketRepository repoSupportTicket = new SupportTicketRepository(db);
            var supportTicket = new SupportTicket {
                SiteId = SiteId, TicketStateId = StateId, Description = Description, Priority = Priority, Timestamp = DateTime.Now
            };

            repoSupportTicket.Add(supportTicket);

            return(supportTicket);
        }