public ActionResult EditComplaintTracker(int Id)
        {
            viewComplaintTracker complaint;

            if (Id != 0)
            {
                complaint = CMSService.GetComplaintTracker(Id);
                complaint.ListContracts = CMSService.ListOfContracts(username).ToList();

                //if (User.IsInRole("CMS_IDOAStaff"))
                //{
                //    complaint.AgencyTypeDescription = "IDoA Staff";
                //}
                //else if (User.IsInRole("CMS_RAAAdmin"))
                //{
                //    var psa = CMSService.GetPSAByUserName(username);
                //    complaint.AgencyTypeDescription = psa.AreaName;
                //    complaint.ContractId = psa.Id;
                //}
                //else if (User.IsInRole("CMS_Supervisor"))
                //{
                //    complaint.ListContracts = CMSService.ListOfContracts(username).ToList();

                //    if (complaint.ListContracts.Count == 1)
                //    {
                //        complaint.AgencyTypeDescription = complaint.ListContracts.FirstOrDefault().ContractName;
                //        complaint.ContractId = complaint.ListContracts.FirstOrDefault().Id;
                //    }
                //}
            }
            else
            {
                complaint = new viewComplaintTracker();

                if (User.IsInRole("CMS_IDOAStaff"))
                {
                    complaint.AgencyTypeDescription = "IDoA Staff";
                }
                else if (User.IsInRole("CMS_RAAAdmin"))
                {
                    var psa = CMSService.GetPSAByUserName(username);
                    complaint.AgencyTypeDescription = psa.AreaName;
                    complaint.ContractId            = psa.Id;
                }
                else if (User.IsInRole("CMS_Supervisor"))
                {
                    complaint.ListContracts = CMSService.ListOfContracts(username).ToList();

                    if (complaint.ListContracts.Count == 1)
                    {
                        complaint.AgencyTypeDescription = complaint.ListContracts.FirstOrDefault().ContractName;
                        complaint.ContractId            = complaint.ListContracts.FirstOrDefault().Id;
                    }
                }

                complaint.UserCreated = username;
            }
            return(View(complaint));
        }