Exemplo n.º 1
0
 /// <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);
     }
 }
Exemplo n.º 2
0
 /// <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);
     }
 }