public ActionResult UpdateAdmissionBasicDatail(AddmissionMasterViewModel model, HttpPostedFileBase imageFile)
        {
            if (imageFile != null)
            {
                var    ext      = Path.GetExtension(imageFile.FileName);
                string fname    = "Resume-" + model.Id + ext;
                string Newfname = Path.Combine(Server.MapPath("~/Resumes/"), fname);
                addmissionService.UpdateResumePath(model.Id, "/Resumes/" + fname);
                imageFile.SaveAs(Newfname);
            }
            var userId = Convert.ToInt32(Session["UserId"]);

            model.UpdatedBy = userId;
            var status = addmissionService.UpdateAdmissionBasicDetail(model);
            LogActivityViewModel log = new LogActivityViewModel();

            log.EnteredBy       = Convert.ToInt32(Session["UserId"]);
            log.EnteredDate     = DateTime.Now;
            log.ActioName       = "UpdateAdmissionBasicDatail";
            log.ModuleName      = "Admission";
            log.ControllerName  = "Addmission";
            log.Activity        = "Update Basic Detail";
            log.ActivityMessage = "Admission basic detail of registraion no " + model.RegNo + " updated.";
            log.RegistrationNo  = model.RegNo;
            logActivityService.CreateLogActivity(log);
            return(Json(status, JsonRequestBehavior.AllowGet));
        }