Пример #1
0
        public IActionResult Edit(int id)
        {
            var personAntiSocialBehaviour = _customerFacadeApiClient.GetPersonAntiSocialBehaviour(id).Result;

            PopulateLookupFields(personAntiSocialBehaviour);
            return(PartialView(personAntiSocialBehaviour));
        }
Пример #2
0
        public IActionResult Create(int personAntiSocialBehaviourId)
        {
            var personAntiSocialBehaviour         = _customerFacadeApiClient.GetPersonAntiSocialBehaviour(personAntiSocialBehaviourId).Result;
            var personAntiSocialBehaviourCaseNote = new PersonAntiSocialBehaviourCaseNoteDto
            {
                PersonAntiSocialBehaviourId = personAntiSocialBehaviourId,
                PersonAntiSocialBehaviour   = personAntiSocialBehaviour,
                ActionDate = DateTime.Now,
                ActionTimeSelectListItems = SelectedListHelper.GetTimeIntervalForCalendar()
            };

            PopulateLookupFields(personAntiSocialBehaviourCaseNote);
            return(PartialView("Edit", personAntiSocialBehaviourCaseNote));
        }