Exemplo n.º 1
0
        public dynamic searchbyname(string searchparams)
        {
            var             lst             = _userService.searchbyname(searchparams);
            GlobalResponses globalResponses = new GlobalResponses();

            if (lst != null)
            {
                globalResponses.statuscode    = 100;
                globalResponses.statusmessage = "Success";
                return(lst);
            }
            else
            {
                globalResponses.statuscode    = 101;
                globalResponses.statusmessage = "Not found!";
                return(lst);
            }
        }
Exemplo n.º 2
0
        public dynamic Gettitledetail(int titleid)
        {
            var             lst             = _userService.Gettitledetail(titleid);
            GlobalResponses globalResponses = new GlobalResponses();

            if (lst != null)
            {
                globalResponses.statuscode    = 100;
                globalResponses.statusmessage = "Success";
                globalResponses.obj           = lst;
                return(globalResponses);
            }
            else
            {
                globalResponses.statuscode    = 101;
                globalResponses.statusmessage = "Not found!";
                return(globalResponses);
            }
        }