public async Task <IActionResult> PatchAsync([FromBody] VacancyCVFlowEditStatusRequestModel vacancyCVFlow) { if (vacancyCVFlow == null) { return(BadRequest()); } VacancyCVFlowEditStatusServiceModel flow = _mapper.Map <VacancyCVFlowEditStatusRequestModel, VacancyCVFlowEditStatusServiceModel>(vacancyCVFlow); await _vacancyCVFlowService.ChangeStatus(flow); return(Ok()); }
public async Task ChangeStatus(VacancyCVFlowEditStatusServiceModel vacancyCVFlow) { var flow = _mapper.Map <VacancyCVFlowEditStatusServiceModel, VacancyCVFlowEditStatusDTO>(vacancyCVFlow); await _uow.VacancyCVFlows.Patch(flow); }