Exemplo n.º 1
0
 public IHttpActionResult Update([FromBody] ScrumMaster req)
 {
     try
     {
         if (req != null)
         {
             using (var team = new ProjectMonitorDataContext())
             {
                 var gf = team.ScrumMasters.FirstOrDefault(b => b.Total_Manhours == req.Total_Manhours);
                 {
                     gf.Teams = req.Teams;
                 }
                 team.SubmitChanges();
                 return(Ok(gf));
             }
         }
         else
         {
             return(Unauthorized());
         }
     }
     catch (Exception ex)
     {
         return(BadRequest(ex.Message));
     }
 }
Exemplo n.º 2
0
        public IHttpActionResult Create([FromBody] ScrumMaster req)
        {
            var result = new List <Scrum>();

            using (var ef = new ProjectMonitorDataContext())
            {
                var data = new ScrumMaster()
                {
                    Total_Manhours       = req.Total_Manhours,
                    Ended                = req.Ended,
                    Ready_for_BA_Testing = req.Ready_for_BA_Testing,
                    UAT                   = req.UAT,
                    LIVE                  = req.LIVE,
                    Total_Manhours1       = req.Total_Manhours1,
                    Ended1                = req.Ended1,
                    Ready_for_BA_Testing1 = req.Ready_for_BA_Testing1,
                    UAT1                  = req.UAT1,
                    LIVE1                 = req.LIVE1,
                    Status                = req.Status,
                    Completion            = req.Completion,
                    Last_Update           = req.Last_Update,
                    Progress_History      = req.Progress_History,
                    Teams                 = req.Teams,
                    Conf_Type             = req.Conf_Type,
                    Conf_Value            = req.Conf_Value,
                    history               = req.history,
                    Attachment            = req.Attachment,
                    ITCM_SR_HPPID         = req.ITCM_SR_HPPID,
                };
                ef.ScrumMasters.InsertOnSubmit(data);
                ef.SubmitChanges();
            }
            return(Ok(result));
        }
Exemplo n.º 3
0
        public IHttpActionResult Create([FromBody] Developer req)
        {
            var result = new List <Develop>();

            using (var gh = new ProjectMonitorDataContext())
            {
                var input = new Developer()
                {
                    ITCM_SR_HPPID = req.ITCM_SR_HPPID,
                    Issue         = req.Issue,
                    Raise_Date    = req.Raise_Date,
                    Attachment    = req.Attachment,
                    Solution      = req.Solution,
                    Status        = req.Status,
                    history       = req.history,
                };
                gh.Developers.InsertOnSubmit(input);
                gh.SubmitChanges();
            }
            return(Ok(result));
        }
Exemplo n.º 4
0
        public IHttpActionResult Create([FromBody] ProjectManager req)
        {
            var result = new List <Manager>();

            using (var ab = new ProjectMonitorDataContext())
            {
                var data = new ProjectManager()
                {
                    ITCM_SR_HPPID        = req.ITCM_SR_HPPID,
                    ProjectTitle         = req.ProjectTitle,
                    Business_Analyst     = req.Business_Analyst,
                    Web_Project_Identity = req.Web_Project_Identity,
                    Project_Controller   = req.Project_Controller,
                    Department           = req.Department,
                    Project_Type         = req.Project_Type,
                    Key_User             = req.Key_User,
                    Star_Date            = req.Star_Date,
                    Priority_Type        = req.Priority_Type,
                    Usage                = req.Usage,
                    Note                 = req.Note,
                    Total_Manhours       = req.Total_Manhours,
                    Ended                = req.Ended,
                    Ready_for_BA_Testing = req.Ready_for_BA_Testing,
                    UAT                   = req.UAT,
                    LIVE                  = req.LIVE,
                    Total_Manhours1       = req.Total_Manhours1,
                    Ended1                = req.Ended1,
                    Ready_for_BA_Testing1 = req.Ready_for_BA_Testing1,
                    UAT1                  = req.UAT1,
                    LIVE1                 = req.LIVE1,
                    history               = req.history
                };
                ab.ProjectManagers.InsertOnSubmit(data);
                ab.SubmitChanges();
            }
            return(Ok(result));
        }