public void CreateResume(ResumeModel model) { var resumeManager = _resumeManagerRepository.Get(model.ManagerId); resumeManager.Resume = model.ToEntity(); _resumeManagerRepository.Update(resumeManager); }
public void UpdateResume(ResumeModel model) { if (model.Id == null) { return; } if (_resumeRepository.Has(model.Id.Value)) { var entity = model.ToEntity(); _resumeRepository.Update(entity); } }
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()); }