// // GET: /Uom/Details/5 public ActionResult Details(string id) { var model = new UomDetailViewModel(); var data = _uomBLL.GetById(HttpUtility.UrlDecode(id)); model = Mapper.Map <UomDetailViewModel>(data); model.CurrentMenu = PageInfo; model.MainMenu = _mainMenu; model.ChangesHistoryList = Mapper.Map <List <ChangesHistoryItemModel> >(_changeHistoryBll.GetByFormTypeAndFormId(Enums.MenuList.Uom, HttpUtility.UrlDecode(id))); return(View(model)); }
private bool ValidateUomId(string uomId, out List <string> message, out UOM uomData) { uomData = null; var valResult = false; var messageList = new List <string>(); #region ----------------UOM Validation------------------------- if (!string.IsNullOrWhiteSpace(uomId)) { uomData = _uomBll.GetById(uomId); if (uomData == null) { messageList.Add("Uom Id [" + uomId + "] not valid"); } else { valResult = true; } } else { messageList.Add("Uom Id is empty"); } #endregion message = messageList; return(valResult); }