public async Task <OrgUnitResponseDTO> AddWarehouse([FromBody] OrgUnitRequestDTO orgUnitDTO) { using (var userManager = _userManagerFactory()) { var userId = userManager.GetUserId(User); var orgUnit = await _orgUnitsService.AddWarehouseAsync(orgUnitDTO, userId); return(orgUnit); } }
public async Task <OrgUnitResponseDTO> Update([FromBody] OrgUnitRequestDTO orgUnitDTO) { return(await _orgUnitsService.UpdateAsync(orgUnitDTO)); }