Beispiel #1
0
        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());
        }
Beispiel #2
0
        public JsonResult OnPostCreate(CreateJobExperience command)
        {
            var result = _jobExperienceApplication.Create(command);

            return(new JsonResult(result));
        }
Beispiel #3
0
        public IActionResult OnGetCreate()
        {
            var command = new CreateJobExperience();

            return(Partial("./Create", command));
        }