예제 #1
0
        public virtual async Task <IActionResult> UpdateItem([FromBody] TBL item)
        {
            try
            {
                await _businessLogicService.Update(item).ConfigureAwait(false);

                return(Ok($"{typeof(TBL).Name} have been successfully updated"));
            }
            catch
            {
                return(NotFound($"{typeof(TBL).Name} not found"));
            }
        }