Beispiel #1
0
        public async Task <IActionResult> Edit(int id)
        {
            if (id < 1)
            {
                return(NotFound());
            }
            var contact = await _contactInfoService.GetUpdateDto(id);

            if (contact.ResultStatus == ResultStatus.Error)
            {
                return(NotFound());
            }
            if (contact.ResultStatus == ResultStatus.Success)
            {
                return(View(contact.Data));
            }
            return(NotFound());
        }