Ejemplo n.º 1
0
        public IHttpActionResult GetPackageWithPeriodTypeList()
        {
            var           dayShiftList = _dayShiftRepository.GetDayShiftList();
            List <object> oblit        = new List <object>();

            foreach (var item in dayShiftList)
            {
                var ob = new
                {
                    ObjctModel = new UserWithPackageSaveViewModel {
                        Id = null, DayShiftActive = false, Amount = null, DayShiftId = null, PackageCount = null, PackageId = null, PackageStartDate = null, PeriodTypeId = null, UserCrediantialId = null
                    },
                    DayShift   = item,
                    Package    = _dayShiftRepository.GetDayShiftPackageList(10, item.Id),
                    PeriodType = _periodTypeRepository.GetPeriodTypeList(10).ToList()
                };
                oblit.Add(ob);
            }
            return(Ok(new { dayShiftPackage = oblit }));
        }
Ejemplo n.º 2
0
        public IHttpActionResult GetPeriodTypeList()
        {
            var data = _periodTypeRepository.GetPeriodTypeList(10).ToList();

            return(Ok(data));
        }