public async Task <ActionResult <NarudzbaResponse> > Insert(NarudzbaInsertRequest request) { var ID = HttpContext.GetUserID(); if (ID == null) { return(BadRequest()); } var response = await _service.Insert((int)ID, request); if (response == null) { return(BadRequest()); } PathString path = HttpContext.Request.Path; return(Created(path, response)); }
public void Insert(NarudzbaInsertRequest request) { _narudzbaService.Insert(request); }
public OnlineGym_Model.Narudzbe Insert(NarudzbaUpsertRequest request) { return(_service.Insert(request)); }
public Model.Narudzba Insert(NarudzbaInsertRequest request) { return(_service.Insert(request)); }