public UOMMaster GetUOMMasterDetailsById(long Id) { try { if (Id > 0) { return(mbc.GetUOMMasterDetailsById(Id)); } else { throw new Exception("Id is required and it cannot be null or empty."); } } catch (Exception ex) { throw ex; } finally { } }