public OperationResult Create(CreateJobExperience command) { var operation = new OperationResult(); var jobExperience = new JobExperience(command.CompanyName, command.JobPosition, command.WorkDate, command.Description); _jobExperienceRepository.Create(jobExperience); _jobExperienceRepository.SaveChanges(); return(operation.Succedded()); }
public JsonResult OnPostCreate(CreateJobExperience command) { var result = _jobExperienceApplication.Create(command); return(new JsonResult(result)); }
public IActionResult OnGetCreate() { var command = new CreateJobExperience(); return(Partial("./Create", command)); }