Beispiel #1
0
        public async Task <ActionResult <Author> > PostAuthor(AuthorMODEL model)
        {
            var resultProcess = await authorBLL.InsertAsync(model);

            if (!resultProcess.IsApproved)
            {
                return(BadRequest(resultProcess.ShortMessage));
            }
            else
            {
                return(Ok(resultProcess.ObjectResult));
            }
        }