Пример #1
0
        public IHttpActionResult Post(Character_DTO aCharac)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest());
            }

            repo.CreateWithDTO(aCharac);
            Character created_character = repo.Get(aCharac.CharacterName);

            logger.Log("Exiting characterDto.Controller");
            return(Ok(created_character));
        }