public UnitOfMeasure UpdateUnitOfMeasure(int unitId, [FromBody] UnitOfMeasure oUnitOfMeasure) { if (ModelState.IsValid) { return(_iUnitOfMeasureService.UpdateUnitOfMeasure(unitId, oUnitOfMeasure)); } else { return(null); } }