/// <summary> /// Is email already exist. /// </summary> /// <returns></returns> public bool IsEmailDoesntExist() { if (AppVar.Setting.IsFirstUserFound) { // first user is already registered. ApplicationUser user; if (UserManager.IsEmailExist(_viewMdoel.Email)) { ErrorCollector.AddHigh(MessageConstants.EmailExist, "", "", "", MessageConstants.SolutionContactAdmin); return(false); // not valid } } return(true); }