public async Task <ActionResult <UserModel> > Register(UserAuthDto regData) { if (CheckHelper.IsValidEmail(regData.Email)) { var added = await _dao.AddUserAsync(regData); if (added.Data != null) { return(Ok(added)); } else { return(BadRequest(added)); } } else { return(BadRequest(new DataResult <UserModel>(null, "INVALID_EMAIL"))); } }