Пример #1
0
        public HttpResponseMessage GetCrebitMonthlyCharges(HttpRequestMessage req)
        {
            BL_Admin admin = new BL_Admin();
            List <DL_MonthlyRetailerCharges> crebitCharge = admin.UpdateCrebitMonthlyCharges(); //

            if (admin._IsSuccess)
            {
                return(req.CreateResponse <List <DL_MonthlyRetailerCharges> >(HttpStatusCode.OK, crebitCharge));
            }
            else
            {
                Logger.WriteLog(LogLevelL4N.WARN, "Server Error");
                return(req.CreateErrorResponse(HttpStatusCode.InternalServerError, "ServerError"));
            }
        }