public JsonResult SavePerformanceCardDetail(PerformanceCardViewModel Model)
        {
            Model.UserId = Convert.ToInt32(Session["UserId"]);
            var result = _perforamnce.SavePerformanceCardDetail(Model);

            if (result.IsSuccess)
            {
                TempData["msg"] = result.Massage;
            }
            var       tblPerformanceEntryMasterId = Model.tblPerformanceEntryMasterId.ToString();
            string    Template = Email.GetDynamicTemplateForPerformance(tblPerformanceEntryMasterId, Model.Percentage, Model.ReviewArr, Model.WeeklyArr);
            TestEmail email    = new TestEmail(Template, Model.ReviewArr + " Result Notification", "*****@*****.**");

            email.SendTestingMail();
            return(Json(result, JsonRequestBehavior.AllowGet));
        }