Exemplo n.º 1
0
 public User GetUserById(int id)
 {
     try
     {
         BusinessLogic.Common.Common common = new BusinessLogic.Common.Common();
         return(common.GetUserById(id));
     }
     catch (Exception e)
     {
         WebOperationContext.Current.OutgoingResponse.StatusCode        = HttpStatusCode.PreconditionFailed;
         WebOperationContext.Current.OutgoingResponse.StatusDescription = e.Message;
         BusinessLogic.Common.Common common = new BusinessLogic.Common.Common();
         common.CreateErrorLog(0, "GetUserById", e.Message, 0);
     }
     return(null);
 }