Пример #1
0
        public void CreateResume(ResumeModel model)
        {
            var resumeManager = _resumeManagerRepository.Get(model.ManagerId);

            resumeManager.Resume = model.ToEntity();

            _resumeManagerRepository.Update(resumeManager);
        }
Пример #2
0
 public void UpdateResume(ResumeModel model)
 {
     if (model.Id == null)
     {
         return;
     }
     if (_resumeRepository.Has(model.Id.Value))
     {
         var entity = model.ToEntity();
         _resumeRepository.Update(entity);
     }
 }
Пример #3
0
        public IActionResult Put(int id, [FromBody] ResumeModel model)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }
            var entity = model.ToEntity();

            _resumeService.Update(entity);

            //locales
            UpdateLocales(entity, model);
            return(NoContent());
        }