Example #1
0
        public ActionResult <Param> Get(int id)
        {
            var param = DAParam.SelectById(id, out error);

            if (param == null)
            {
                return(NotFound(error));
            }
            return(Ok(param));
        }
Example #2
0
 public Param Param_SelectById(int PARA_ID)
 {
     try
     {
         return(DAParam.SelectById(PARA_ID));
     }
     catch (Exception ex)
     {
         myServiceData.Result       = false;
         myServiceData.ErrorMessage = "unforeseen error occured. Please try later.";
         myServiceData.ErrorDetails = ex.ToString();
         throw new FaultException <ServiceData>(myServiceData, ex.ToString());
     }
 }