Esempio n. 1
0
        public JsonResponse <IList <UserMasterDTO> > GetUsersByStatus()
        {
            int type = 1;
            JsonResponse <IList <UserMasterDTO> > response = new JsonResponse <IList <UserMasterDTO> >();

            try
            {
                response.SingleResult = UserBusinessInstance.GetUsersByStatus(type);
                response.StatusCode   = "200";
                response.IsSuccess    = true;
            }
            catch (Exception ex)
            {
                response.SingleResult = null;
                response.StatusCode   = "500";
                response.IsSuccess    = false;
                response.Message      = ex.Message;
            }
            return(response);
        }