public UnknownObject GetUnknownByEmail(string email) { UnknownObject unknown; try { unknown = new UnknownDataService().GetUnknownByEmail(email); } catch (System.Exception exception1) { System.Exception innerException = exception1; throw new System.Exception(MethodBase.GetCurrentMethod().Name, innerException); } return(unknown); }
public UnknownObjectCollection GetAll() { UnknownObjectCollection unknowns; try { unknowns = new UnknownDataService().GetAll(); } catch (System.Exception exception1) { System.Exception innerException = exception1; throw new System.Exception(MethodBase.GetCurrentMethod().Name, innerException); } return(unknowns); }