Esempio n. 1
0
        public static SCActionResult GetResult(string redirect)
        {
            SCActionResult opResult = new SCActionResult();

            opResult.Redirect = redirect;
            return(opResult);
        }
Esempio n. 2
0
        public static SCActionResult GetResult(bool success, string errMsg = "", string errTitle = "", string data = null)
        {
            SCActionResult opResult = new SCActionResult();

            opResult.Success      = success;
            opResult.ErrorMessage = errMsg;
            opResult.ErrorTitle   = errTitle;
            opResult.Data         = data;
            return(opResult);
        }