Exemple #1
0
 public ActionResult Edit(HrCvHintVM model)
 {
     if (ModelState.IsValid)
     {
         _hrCvHintService.Update(MapFrom(model));
         return(RedirectToAction("Index"));
     }
     return(View(model));
 }
Exemple #2
0
 public HrCvHintText MapFrom(HrCvHintVM model)
 {
     return(new HrCvHintText
     {
         Id = model.Id,
         Field = model.Field,
         FieldName = model.FieldName,
         Language = model.Language,
         Text = model.Text
     });
 }
Exemple #3
0
 public ActionResult Create(HrCvHintVM model)
 {
     if (ModelState.IsValid)
     {
         _hrCvHintService.Create(MapFrom(model));
         return(RedirectToAction("Index"));
     }
     else
     {
         return(View(model));
     }
 }