public ActionResult CreateProjectCustomListData(ProjectCustomListData projectCustomListData)
        {
            var acResponse = new ActivityResponse();

            try
            {
                if (string.IsNullOrEmpty(projectCustomListData.CustomListDataId))
                {
                    acResponse.Code    = -1;
                    acResponse.Message = "Please select custom List";
                    return(Json(acResponse, JsonRequestBehavior.AllowGet));
                }

                if (string.IsNullOrEmpty(projectCustomListData.ProjectCode))
                {
                    acResponse.Code    = -1;
                    acResponse.Message = "Please provide Project Code";
                    return(Json(acResponse, JsonRequestBehavior.AllowGet));
                }

                _projectCustomListDataService.Insert(projectCustomListData);
                _unitOfWork.SaveChanges();

                acResponse.Code    = 5;
                acResponse.Message = "Project Custom List Data was successfully Created";
                return(Json(acResponse, JsonRequestBehavior.AllowGet));
            }
            catch (Exception e)
            {
                acResponse.Code    = -1;
                acResponse.Message = "An unknown error was encountered. Please try again.";
                return(Json(acResponse, JsonRequestBehavior.AllowGet));
            }
        }
        public ActionResult GetProjectCustomListData(int?id)
        {
            if (id == null)
            {
                return(Json(new ProjectCustomListData(), JsonRequestBehavior.AllowGet));
            }

            ProjectCustomListData projectCustomListData = _projectCustomListDataService.Find(id);

            if (projectCustomListData == null)
            {
                return(Json(new ProjectCustomListData(), JsonRequestBehavior.AllowGet));
            }
            return(Json(projectCustomListData, JsonRequestBehavior.AllowGet));
        }