示例#1
0
        public IHttpActionResult GetDataWithIDs(DTO.Search searchInput)
        {
            if (!bLL.CanPerformAction(ControllerContext.GetAuthUserId(), moduleCode, ModuleAction.CanRead))
            {
                return(InternalServerError(new Exception(Properties.Resources.NOT_AUTHORIZED)));
            }

            object data = executor.CustomFunction(ControllerContext.GetAuthUserId(), "getdata", searchInput.Filters, out Notification notification);

            return(Ok(new ReturnData <object> {
                Data = data, Message = notification
            }));
        }
示例#2
0
        public IHttpActionResult GetPricePreviousSeason(DTO.Search filters)
        {
            if (!bLL.CanPerformAction(ControllerContext.GetAuthUserId(), moduleCode, ModuleAction.CanUpdate))
            {
                return(InternalServerError(new Exception(Properties.Resources.NOT_AUTHORIZED)));
            }

            object data = executor.CustomFunction(ControllerContext.GetAuthUserId(), "GetPricePreviousSeason", filters.Filters, out Notification notification);

            return(Ok(new ReturnData <object> {
                Data = data, Message = notification
            }));
        }