// POST api/loginrestoreaccount public bool Post([FromBody]SignInModel value) { if (Profile.UserService.IsEmailExist(value.Email)) { //Profile. var worker = new EmailWorker(); worker.SendEmail(value.Email, "Reset password", "You pasword has bin changed"); return true; } return false; }
// POST api/coreemail public bool Post([FromBody]EmailMsg message) { var worker = new EmailWorker(); return worker.SendEmail(message.To, message.Subj, message.Body); }