Пример #1
0
        public IActionResult CreateMember([FromBody] RequestCreateMember _member)
        {
            AppUser user = new AppUser();
            Member  entity;

            if (ModelState.IsValid)
            {
                entity = _memberServices.CreateMember(_member);
                _memberServices.Commit();
                return(Created($"api/member/{entity.Id}", _member));
            }
            else
            {
                return(BadRequest());
            }
        }