/// <Function> /// <MethodName> /// FindByPK /// </MethodName> /// <Description> /// Find a Model by Primary Key /// </Description> /// <Inputs> /// Value of Primary Key /// </Inputs> /// <Returns> /// Model /// </Returns> /// </Function> public BaseModel FindByPK(Int64 value) { try { return(baseFacade.FindByPK(value)); } catch (FacadeException fx) { return(null); } }
/// <Function> /// <MethodName> /// FindByPK /// </MethodName> /// <Description> /// Find a Model by Primary Key /// </Description> /// <Inputs> /// Value of Primary Key /// </Inputs> /// <Returns> /// Model /// </Returns> /// </Function> public BaseModel FindByPK(Int64 value) { try { return(baseFacade.FindByPK(value)); } catch (FacadeException fx) { throw new BOException("Can not find user " + fx.Message); } }