public ActionResult AddEdit(InvoiceAddEditModel invoice) { if (TryValidateModel(invoice)) { invoice.UserId = userRepo.GetDefaultUser("").LogisticUserId; _repo.AddEditInvoice(invoice); } return(Json(1)); }
public ActionResult AddEdit(InvoiceAddEditModel invoice) { if (TryValidateModel(invoice)) { invoice.UserId = userRepo.GetDefaultUser("").LogisticUserId; _repo.AddEditInvoice(invoice); } return(Json(1)); }