Ejemplo n.º 1
0
        public static OutcomeList Find(int userID, int employeeID, int bussinessID, string message = "", OutcomeFilter filter = null, bool log = false, int?max = 100)
        {
            QueryOutput queryResult;
            var         result = new OutcomeList(message, filter);

            result.Data = Query <OutcomeInfo>(new DbQuery(userID, employeeID, DbAction.Outcome.View, FindQuery(userID, bussinessID, filter, max), log), out queryResult);
            return(result);
        }
Ejemplo n.º 2
0
        public static OutcomeList Find(int userID, int bussinessID, OutcomeFilter filter = null, int?max = 100)
        {
            var result = new OutcomeList("", filter);

            using (var con = Repo.DB.SKtimeManagement)
            {
                result.Data = con.Query <OutcomeInfo>(FindQuery(userID, bussinessID, filter, max)).ToList();
            }
            return(result);
        }