public JsonResult AddQuote(Models.Quote quote) { if (!quote.IsValid) { var quotesservices = new QuotesService(); quote.User = User.Identity.Name; return Json(quotesservices.AddQuote(quote)); } return Json(false); }
public JsonResult GetQuotes(string project) { var quotesservices = new QuotesService(); var quotes = quotesservices.GetQuotes(project); return Json(quotes); }
public JsonResult GetProjects() { var quotesservices = new QuotesService(); var projectsList = quotesservices.GetProjects(); return Json(projectsList); ; }