public bool Save(MyBusinessUser newUser) { var user = GetContext().Single <MyBusinessUser>(x => x.UserId == newUser.UserId); if (user == null) { GetContext().Add(newUser); return(true); } return(false); }
private string GetTitle(MyBusinessUser model) { return("Регистрация промокода " + StringUtils.AngleBrackets("Мое дело")); }