//   GET api/copymaster/154
        //to copy issues from master project to a child project
        public HttpResponseMessage Get(int id)
        {
            try
            {
                int redmineUserId;
                AccountsServices ac = new AccountsServices();
                string auth = ac.CheckToken(Request);
                if (string.IsNullOrEmpty(auth))
                    return Request.CreateResponse(HttpStatusCode.Unauthorized, "Unauthorized access");
                else if (auth.Contains("Exception"))
                    return Request.CreateResponse(HttpStatusCode.Unauthorized, "Authentication error!! Please try again");
                else
                    int.TryParse(auth, out redmineUserId);

                CopyMasterService cms = new CopyMasterService();
                List<Issue> get_issues = cms.GetIssuesFromMaster();
                string result = "Not Copied";
                foreach (var issue in get_issues)
                {
                    //   int childpro_id = 149;
                    CopyFromMasterToChildService CFM = new CopyFromMasterToChildService();
                    result = CFM.Copy(issue, id);
                }
                if (result == "Created")
                {
                    result = "copied";
                }
                return Request.CreateResponse(HttpStatusCode.OK, result);
            }

            catch (Exception ex)
            {
            return Request.CreateResponse(HttpStatusCode.InternalServerError, "InternalServerError");
            }
        }
 //   GET api/copymaster/154
 //to copy issues from master project to a child project
 public string Get(int id)
 {
     CopyMasterService cms = new CopyMasterService();
     List<Issue> get_issues = cms.GetIssuesFromMaster();
     string result = "Not Copied";
     foreach (var issue in get_issues)
     {
         //   int childpro_id = 149;
         CopyFromMasterToChildService CFM = new CopyFromMasterToChildService();
         result = CFM.Copy(issue, id);
     }
     if (result == "Created")
     {
         result = "copied";
     }
     return result;
 }