Exemplo n.º 1
0
        public IHttpActionResult ChangeStatusOfAllReportWithIdAndType(int isReportId, string reportType)
        {
            try
            {
                using (var reportDal = new ReportDAL())
                {
                    reportDal.ChangeStatusOfReport(isReportId, reportType);
                }

                return(Ok(new HTTPMessageDTO
                {
                    Status = WsConstant.HttpMessageType.SUCCESS,
                    Message = "Get User Detail Report  Data Successfully",
                    Type = "",
                }));
            }
            catch (Exception)
            {
                return(Ok(new HTTPMessageDTO
                {
                    Status = WsConstant.HttpMessageType.ERROR,
                    Message = "Cannot User Detail Report Data Profile!",
                    Type = ""
                }));
            }
        }