Example #1
0
        public JsonResult AddMedallion(Medallion medallion)
        {
            if (medallion != null)
            {
                medallion.Id = Guid.NewGuid();
                medallion.BillingStartDate = medallion.DateJoined;

                medallionService.Add(medallion);
                return Json(true);
            }
            return Json(false);
        }
Example #2
0
 public Medallion Add(Medallion medallion)
 {
     medallionRepository.Add(medallion);
     return medallion;
 }
Example #3
0
 public JsonResult EditMedallion(Medallion medallion)
 {
     try
     {
         if (medallion != null)
         {
             medallion.BillingStartDate = medallion.DateJoined;
             medallionService.Update(medallion);
             return Json(true);
         }
     }
     catch
     {
         return Json(false);
     }
     return Json(false);
 }
Example #4
0
 public Medallion Update(Medallion medallion)
 {
     medallionRepository.Update(medallion);
     return medallion;
 }