public async Task <ActionResult> Post([FromBody] Models.Request.AddUpdateCompanyRequest addCompanyRequest) { var dtoRequest = _mapper.Map <Core.Dto.UseCaseRequests.AddCompanyRequest>(addCompanyRequest); await _addCompanyUseCase.Handle(dtoRequest, _addCompanyPresenter); return(_addCompanyPresenter.ContentResult); }
public async Task <ActionResult> Post(int id, [FromBody] Models.Request.AddUpdateCompanyRequest updateCompanyRequest) { var dtoRequest = _mapper.Map <Core.Dto.UseCaseRequests.UpdateCompanyRequest>(updateCompanyRequest); dtoRequest.Id = id; await _updateCompanyUseCase.Handle(dtoRequest, _updateCompanyPresenter); return(_updateCompanyPresenter.ContentResult); }