Beispiel #1
0
        public async Task <IHttpActionResult> Put(int id, [FromBody] Load load)
        {
            if (id != load.Id)
            {
                return(BadRequest());
            }

            await LoadsService.UpdateAsync(load);

            return(Ok());
        }
Beispiel #2
0
        public async Task Accept()
        {
            SelectedLoad.LoadStatus = LoadStatus.Done;

            await _LoadsService.UpdateAsync(SelectedLoad);
        }