//When-ever we will assign ticket to any user Status will become InProgress status automatically
        public Boolean AssignTicketToUser(int TktID, int AssignedTo, string comment)
        {
            string msg = "";

            User.UserBusiness u = new User.UserBusiness();
            var asigneeUser     = u.GetUserByUID(AssignedTo);

            var otpt = LogRepo.AddTicketLog(Convert.ToInt32(CurrentUser[2]), CurrentUser[1] + " (" + role + ") Assigned to " + asigneeUser.Name, TktID, out msg);
            var flag = otpt > 0 ? true : false;

            if (flag)
            {
                //string mailMsg = "";
                EmailTemplate mailTemp = new EmailTemplate();
                var           tkt      = tktRepo.TicketByID(TktID).FirstOrDefault();
                mailTemp.Mail_To.Add(tkt.CreatedByUser.EmailID);
                mailTemp.Mail_Cc.Add(asigneeUser.EmailID);
                mailTemp.Mail_Cc.Add(CurrentUser[0]);
                mailTemp.Mail_Subject = "Ticket Assigned";
                mailTemp.Mail_Content = "Hello User,<br /> Ticket ID " + TktID + " Assigned to " + asigneeUser.Name + " Which was created by " + tkt.CreatedByUser.Name;
                //GenericClass.sendMail(mailTemp, out mailMsg);

                tktRepo.AssignTicketToUser(TktID, AssignedTo, Convert.ToInt32(CurrentUser[2]), comment);
                tktRepo.UpdateTicketStatus(TktID, 2);//2 Status id means InProgress
            }
            return(flag);
        }