public ActionResult SignUp(SignUpViewModel model) { if (ModelState.IsValid) //Gelen verilerin Modeldeki propertylere uygunlugunu kontrol eder burada modelimiz 'SignUpViewModel' dir. { BusinessLayerResult <EveryNoteUser> res = everynoteuser_mngr.SignUpUser(model); if (res.Errors.Count > 0) { res.Errors.ForEach(x => ModelState.AddModelError("", x.Message)); //Tüm Errors List inde Foreach ile dön herbiri için ilgili string i (x yani) ModelState in Error üne ekle. return(View(model)); } UploadManager.UserProfileImageFolderCreate(res.Result.Id); SuccessfulOperationsViewModel successful_notifyobj = new SuccessfulOperationsViewModel() { title = "Your registration is successful.", text = "Please activate your account to sign in.", RedirectingUrl = "/Home/SignIn" }; successful_notifyobj.Items.Add("Please activate your account using the activation link we sent to you."); return(View("SuccessfulOperation", successful_notifyobj)); } return(View(model)); }