public ActionResult <List <Param> > Get()
        {
            var paramList = DAParam.SelectAll(out error);

            if (paramList == null || paramList.Count == 0)
            {
                return(NotFound(error));
            }
            return(Ok(paramList));
        }
 public List <Param> Param_SelectAll()
 {
     try
     {
         return(DAParam.SelectAll());
     }
     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());
     }
 }