Exemplo n.º 1
0
 internal Staff GetStaffByIDObject(Guid ID, string LanguageCode = null)
 {
     try
     {
         StaffDal objDAL   = new StaffDal();
         DataSet  dsFields = objDAL.GetByID(ID, LanguageCode);
         if (dsFields == null || dsFields.Tables[0].Rows.Count == 0)
         {
             return(null);
         }
         return(MappingManager.MapStaffAsListOfBLObjects(dsFields)[0]);
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }