protected void lkbSave_Click(object sender, EventArgs e) { try { MST_ROUTE_NAME item = new MST_ROUTE_NAME(); item.RouteName = txtRouteName.Text.Trim(); item.Org_Id = cls_Common.UserProfile.ORG_ID; bool isSave = _item.Save(item); if (isSave) { ClearItems(); ShowMessage("Route Name saved Successfully..", true); RefreshItems(); } else { ShowMessage("Some error found..", false); } } catch (Exception ex) { ShowMessage(ex.Message, false); } }
public bool Save(MST_ROUTE_NAME data) { try { unitOfWork.RouteRepository.Create(data); unitOfWork.Save(); return(true); } catch (Exception ex) { return(false); } }