Esempio n. 1
0
        public JsonResult Login(LoginViewModel loginViewModel)
        {
            Login login = populateModelLogin.PopulateModel(loginViewModel);
            User  user  = userRepository.FindFirstBy(u => u.Email.Equals(login.User.Email));

            return(LoginUser(login, user));
        }
Esempio n. 2
0
        public EmptyResult CreateContact(ContactUsViewModel contactUsViewModel)
        {
            ContactUs contactUs = contactUsService.PopulateModel(contactUsViewModel);

            contactUsRepository.Save(contactUs);
            return(new EmptyResult());
        }