//public async void GetPlanStatus()
        public async void SetCcm(CcmInput input)
        {
            var @sep = Cocomo.SetValue(input.planID, input.Sloc, input.Mode, input.Model, input.effort, input.time, input.staff, input.projectID);
            await _ccmRepository.InsertAsync(@sep);

            setTotalEffort(input.effort, input.time, input.planID, 3);
        }
Exemplo n.º 2
0
        public static Cocomo SetValue(Guid id, int sloc, int mode, int model, float effort, float time, int staff, Guid?projectId)
        {
            var ccm = new Cocomo
            {
                PlanId    = id,
                Sloc      = sloc,
                Mode      = mode,
                Model     = model,
                Effort    = effort,
                Time      = time,
                Staff     = staff,
                ProjectId = projectId
            };

            return(ccm);
        }