示例#1
0
        public DashboardResponse GetDashboard(string name, string author, string email)
        {
            Dashboard dashboard = _iIdeaRepository.GetDashboard(author, email);

            if (dashboard.IsSuccess)
            {
                return(new DashboardResponse(dashboard.IsSuccess, dashboard.Message, dashboard));
            }
            else
            {
                return(new DashboardResponse(dashboard.IsSuccess, dashboard.Message, null));
            }
        }