public ActionResult CabRoute(tbCabRoute cabroute) { AdminService _service = new AdminService(); if (_service.SetRoute(cabroute)) return View(cabroute); return View("Error"); }
public ActionResult CabRoute(tbCabRoute cabroute) { AdminService _service = new AdminService(); if (_service.SetRoute(cabroute)) { return(View(cabroute)); } return(View("Error")); }
public bool SetRoute(tbCabRoute cabroute) { try { _dataContext.tbCabRoutes.InsertOnSubmit(cabroute); _dataContext.SubmitChanges(); } catch (Exception e) { return(false); } return(true); }
public bool SetRoute(tbCabRoute cabroute) { return _repository.SetRoute(cabroute); }
public bool SetRoute(tbCabRoute cabroute) { return(_repository.SetRoute(cabroute)); }
public bool SetRoute(tbCabRoute cabroute) { try { _dataContext.tbCabRoutes.InsertOnSubmit(cabroute); _dataContext.SubmitChanges(); } catch (Exception e) { return false; } return true; }