private void RegisterNew(DtoUser user) { using (RepositoryUser model = new RepositoryUser()) { model.Create(user); } }
public ActionResult Create(UserMD Data) { RepositoryUser repo = new RepositoryUser(); AuthModel user = RepositoryAuthModel.GetAuthModel(HttpContext.User.Identity as FormsIdentity); OperationResult <UserViewModel> result = repo.Create(Data, user); return(Json(result)); }