public ActionResult Listing()
        {
            string ownerEmail = CookieManager.GetAuthenticatedUserDetails().Email;
            List <ProjectListModel> projects = _projectService.Get(ownerEmail);

            return(Json(new { projects = projects }, JsonRequestBehavior.AllowGet));
        }
        public ActionResult Create(ProjectModel model)
        {
            string ownerEmail = CookieManager.GetAuthenticatedUserDetails().Email;
            var    projectId  = _projectService.Create(model);

            _userService.GetUser(ownerEmail);
            _projectService.AddMember(projectId, _userService.GetUser(ownerEmail));
            return(Json(new { projectId = projectId }, JsonRequestBehavior.AllowGet));
        }