public async Task <IActionResult> AddAsync([FromBody] Offer offer) { var user = await _userManager.GetUserAsync(User); offer.CreatedBy = user.Id; offer.ModifiedBy = user.Id; return(Ok(await _offerService.AddAsync(offer))); }
public async Task <ActionResult <OfferDTO> > Add(OfferDTO offerDTO) { var offer = await _offerService.AddAsync(offerDTO); return(offer); }