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); }
public Medallion Add(Medallion medallion) { medallionRepository.Add(medallion); return medallion; }
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); }
public Medallion Update(Medallion medallion) { medallionRepository.Update(medallion); return medallion; }