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)); }
public EmptyResult CreateContact(ContactUsViewModel contactUsViewModel) { ContactUs contactUs = contactUsService.PopulateModel(contactUsViewModel); contactUsRepository.Save(contactUs); return(new EmptyResult()); }