Esempio n. 1
0
        public IHttpActionResult RunDailyActivityReport(DailyActivityReportParamsModel model)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            try
            {
                var paramsDto     = Mapper.Map <DailyActivityReportParamsDto>(model);
                var fileReadyFlag = _reportAppService.RunDailyActivityReport(paramsDto);

                return(Ok(fileReadyFlag));
            }
            catch (Exception ex)
            {
                return(BadRequest(ex.Message));
            }
        }