public ActionResult TicketsList(Client client)
 {
     if (Session["TicType"] != null)
     {
         List <TicketType> SelectType = new List <TicketType>();
         SelectType.Add(MappingDtos.EntityTicketTypeToModelTicketType(TicketTypeUtils.GetTicketById(Int32.Parse(Session["TicType"].ToString()))));
         Session["TicType"] = null;
         var data = MappingDtos.EntityTicketLIstToModelTicketAsList(TicketUtils.GetListOfTicketByClientId(client.Id));
         return(View(new TicketsClient {
             Client = client, Tickets = data, Types = SelectType
         }));
     }
     else
     {
         var data = MappingDtos.EntityTicketLIstToModelTicketAsList(TicketUtils.GetListOfTicketByClientId(client.Id));
         return(View(new TicketsClient {
             Client = client, Tickets = data, Types = MappingDtos.EntityTicketLIstToModelTicketTypeAsList(TicketTypeUtils.GetAllTicketTypes())
         }));
     }
 }
        // GET: Employee/TicketTypeLists
        public ActionResult TicketTypesList()
        {
            var data = MappingDtos.EntityTicketLIstToModelTicketTypeAsList(TicketTypeUtils.GetAllTicketTypes());

            return(View(data));
        }