Пример #1
0
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            var absenceType = NidanBusinessService.RetrieveAbsenceType(UserOrganisationId, id.Value);

            AbsenceName = absenceType.Name;
            var viewmodel = new AbsenceTypeViewModel()
            {
                AbsenceType = absenceType,
                ColoursList = NidanBusinessService.RetrieveColours().ToList()
            };

            return(View(viewmodel));
        }