Exemplo n.º 1
0
        public ActionResult UserQualification(ProfileModel Model)
        {
            UserBM CurrentUser = (UserBM)Session["User"];

            if (CurrentUser != null)
            {
                UserQualificatinBM UserQualificatinBM = new UserQualificatinBM();
                UserQualificatinBM.SchoolName  = Model.UserQualificatinModel.SchoolName;
                UserQualificatinBM.Degree      = Model.UserQualificatinModel.Degree;
                UserQualificatinBM.Percentage  = Model.UserQualificatinModel.Percentage;
                UserQualificatinBM.Description = Model.UserQualificatinModel.Description;
                UserQualificatinBM.StartDate   = Model.UserQualificatinModel.StartDate;
                UserQualificatinBM.EndDate     = Model.UserQualificatinModel.EndDate;

                UserQualificatinBM.UserId       = CurrentUser.Id;
                UserQualificatinBM.CreatedBy    = CurrentUser.Id;
                UserQualificatinBM.CreationDate = DateTime.Now;
                UserQualificationBL.Create(UserQualificatinBM);
                TempData["Success"] = "Record saved Successfully.";
            }
            else
            {
                TempData["Error"] = "Please Login.";
            }

            return(RedirectToAction("Profile"));
        }
Exemplo n.º 2
0
        //  public List<Designa> IndustryList { get; set; }

        public ProfileModel()
        {
            UserProfessionalQualificationModel = new UserProfessionalQualificationBM();
            IndustryList = commonBL.GetIndustry();
            DegreeList   = commonBL.GetDegree();
            UserGeneralInformationModel        = new UserGeneralInformationBM();
            UserPersonalInformationModel       = new UserPersonalInformationBM();
            UserProfessionalQualificationModel = new UserProfessionalQualificationBM();
            UserQualificatinModel = new UserQualificatinBM();
            UserVideoModel        = new UserVideoBM();
        }
Exemplo n.º 3
0
 private UserQualification ConvertToDM(UserQualificatinBM model)
 {
     return(new UserQualification
     {
         Id = model.Id,
         UserId = model.UserId,
         SchoolName = model.SchoolName,
         DegreeName = model.Degree,
         Percentage = model.Percentage,
         Description = model.Description,
         CreatedBy = model.CreatedBy,
         CreationDate = model.CreationDate,
         StartDate = model.StartDate,
         EndDate = model.EndDate,
         ModifiedBy = model.ModifiedBy,
         ModificationDate = model.ModificationDate
     });
 }
Exemplo n.º 4
0
 public void Update(UserQualificatinBM model)
 {
     uow.UserQualificationRepository.Update(ConvertToDM(model));
     uow.Save();
 }
Exemplo n.º 5
0
 public void CreateUserQualificatin(UserQualificatinBM model)
 {
     uow.UserQualificationRepository.Add(ConvertToDM(model));
     uow.Save();
 }