Example #1
0
        public async Task <ActionResult <Result <TemplateFullDto> > > CreateAsync([FromBody] TemplateFullDto item)
        {
            try
            {
                var res = await _service.CreateAsync(item);

                return(StatusCode(201, res));
            }
            catch (ArgumentNullException)
            {
                return(BadRequest());
            }
        }