示例#1
0
 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);
 }
示例#2
0
 public JsonResult GetQuotes(string project)
 {
     var quotesservices = new QuotesService();
      var quotes = quotesservices.GetQuotes(project);
     return Json(quotes);
 }
示例#3
0
 public JsonResult GetProjects()
 {
     var quotesservices = new QuotesService();
     var projectsList = quotesservices.GetProjects();
     return Json(projectsList); ;
 }