Example #1
0
        public ActionResult GetFileInterfaceLogs([DataSourceRequest] DataSourceRequest request, int periodSelectionKind, int?userId = null, string status = null)
        {
            ImportJobsEnums.eFileInterfaceStatus?fileStatus = null;

            try
            {
                if (!string.IsNullOrEmpty(status))
                {
                    fileStatus = Utils.ParseEnum <ImportJobsEnums.eFileInterfaceStatus>(status);
                }
            }
            catch (Exception)
            {
                fileStatus = null;
            }

            var kind = periodSelectionKind.ToPeriodSelectionKind();

            var list = _reportServices.GetFileInterfaceLogs(kind, userId, fileStatus);

            return(Json(list.ToDataSourceResult(request), JsonRequestBehavior.AllowGet));
        }