public JsonResult Get(int id) { Task <Seller> seller = _sellerService.GetSellerById(1); if (seller.Result != null) { } return(Json(seller.Result)); }
public IActionResult GetSingle(int id) { SellerDto sellerDto = _sellerService.GetSellerById(id); if (sellerDto == null) { return(NotFound()); } return(Ok(sellerDto)); }
public async Task Reply(int sellerId, string message) { var seller = _sellerService.GetSellerById(sellerId); await Clients.Clients(seller.ConnectionId).SendAsync("Reply", message); }
public Seller GetSellerById(int id) => _service.GetSellerById(id);
public async Task <IActionResult> GetById(long id) { return(Ok(await _sellerService.GetSellerById(id))); }