public ActionResult Registration(User user)
        {
            user.RegistrationDate = DateTime.Now;

            user.RoleId = 1;
            user.Cookies = Guid.NewGuid().ToString();
            user.IsBlock = true;
            user.Password = Helpers.SecurityHelper.Hash(user.Password);

            DataBase.AddUser(user);

            byte[] email = System.Text.UTF8Encoding.Default.GetBytes(user.Email);
            byte[] key = new Guid().ToByteArray();
            string token = Convert.ToBase64String(email.Concat(key).ToArray());
            Helpers.EmailHelper.SendEmail(user.Email, "Image Network: Email verification", String.Format("Link for verification: http://localhost:50004/Registration/Confirm?email={0}&token={1}", user.Email, token));

            return RedirectToAction("Index", "Home");
        }
 public static void Save(User user)
 {
 }