Ejemplo n.º 1
0
        public virtual async Task <IActionResult> CreateItem([FromBody] TBL item)
        {
            try
            {
                await _businessLogicService.Create(item).ConfigureAwait(false);

                return(Ok($"{typeof(TBL).Name} have been successfully created"));
            }
            catch (Exception exception)
            {
                return(StatusCode(500, exception.Message));
            }
        }