Exemplo n.º 1
0
        //
        // GET: CreateEdit
        public ActionResult CreateEdit(string uid)
        {
            UUnitOfMeasure unitOfMeasure = new UUnitOfMeasure();

            Guid unitOfMeasureId;

            if (Guid.TryParse(uid, out unitOfMeasureId))
            {
                ViewBag.Action = Resources.Global_String_Edit;
                unitOfMeasure._UnitOfMeasure = unitOfMeasureService.GetUnitOfMeasure(unitOfMeasureId);
            }
            return(View(unitOfMeasure));
        }
Exemplo n.º 2
0
 public UnitOfMeasure GetUnitOfMeasure(int unitId)
 {
     return(_iUnitOfMeasureService.GetUnitOfMeasure(unitId));
 }