public ActionResult GetExpenseTransactions(string clientId, string practiceId) { TransactionModel model = new TransactionModel(); model.ClientId = new Guid(clientId); model.PracticeId = new Guid(practiceId); model.LoadData(new Guid(clientId)); return Json(model.ExpenseTransactions, JsonRequestBehavior.AllowGet); }
public ActionResult Edit(String transactionId, string clientId,string practiceId) { TransactionModel model = new TransactionModel(); model.ClientId = new Guid(clientId); model.PracticeId = new Guid(practiceId); model.LoadData(new Guid(clientId), new Guid(transactionId)); return View(model); }
public ActionResult Edit(TransactionModel model) { ICashFlowManagerService service = new CashFlowManagerService(); model.SelectedTransaction.ScheduleId = model.SelectedSchedule; model.SelectedTransaction.ClientId = model.ClientId; model.SelectedTransaction.TransactionTypeId = model.SelectedTransactionType; service.UpdateTransaction(model.SelectedTransaction); return RedirectToAction("Index", "Transaction", new { clientId = model.ClientId.ToString(),practiceId= model.PracticeId.ToString() }); }
public ActionResult Delete(String transactionId, string clientId, string practiceId) { TransactionModel model = new TransactionModel(); if (clientId != null && transactionId != null) { model.ClientId = new Guid(clientId); model.PracticeId = new Guid(practiceId); model.LoadData(new Guid(clientId), new Guid(transactionId)); return View(model); } return RedirectToAction("Index", "Transaction", new { clientId = model.ClientId.ToString(), practiceId = model.PracticeId.ToString() }); }
public ActionResult Delete(TransactionModel model, String transactionId, string clientId, string practiceId) { ICashFlowManagerService service = new CashFlowManagerService(); service.DeleteTransaction(new Guid(transactionId)); return RedirectToAction("Index", "Transaction", new { clientId = clientId, practiceId = practiceId }); }