public async Task <IActionResult> Post(Manifestoutgoing t) { try { t.UsersId = User.GetUserId(); return(Ok(await context.InsertAndGetItem(t))); } catch (Exception ex) { return(BadRequest(new ErrorMessage(ex.Message))); } }
public manifestoutgoing Post(manifestoutgoing t) { return(context.InsertAndGetItem(t)); }