public ActionResult Create(TicketFormViewModel viewModel)
        {
            Ticket ticket = new Ticket()
            {
                Created            = DateTime.Now,
                OwnersUser         = userHelper.GetUserFromId(User.Identity.GetUserId()),
                ProjectId          = viewModel.ProjectId,
                TicketPrioritiesId = viewModel.TicketPriorityId,
                TicketTypeId       = viewModel.TicketTypeId,
                Title       = viewModel.Title,
                Description = viewModel.Description,
            };

            int storedTicketId = ticketHelper.AddTicket(ticket);

            if (viewModel.File != null)
            {
                string attachmentPath = ticketHelper.saveFile(viewModel.File);

                TicketAttachments ticketAttachment = new TicketAttachments()
                {
                    TicketId    = storedTicketId,
                    User        = userHelper.GetUserFromId(User.Identity.GetUserId()),
                    Created     = DateTime.Now,
                    FilePath    = attachmentPath,
                    Description = viewModel.Description,
                };

                ticketHelper.AddTicketAttachment(ticketAttachment);
            }

            return(RedirectToAction("Index"));
        }