示例#1
0
        public IActionResult Add([FromBody] Profile value)
        {
            if (!ModelState.IsValid)
            {
                return(Content($"write all info"));
            }
            var profile = _profileService.AddNewProfile(value);

            if (profile == null)
            {
                return(NotFound("Bad Request"));
            }
            else
            {
                return(Ok("New profile is added"));
            }
        }