public async Task <IActionResult> PostUserForCreateAccount([FromBody] UserToPostDTO user) { _umuRepository.PostUserWithEmailNameAndPassword(user); await _context.SaveChangesAsync(); return(CreatedAtAction("GetUser", new { id = user.EmailAddress }, user)); }
public void PostUserWithEmailNameAndPassword(UserToPostDTO user) { var result = Mapper.Map <User>(user); _context.User.Add(result); }