public async Task <IActionResult> Process(PropertyProcessModel model)
        {
            if (ModelState.IsValid)
            {
                var result = await _propertyService.ProcessAsync(
                    id : model.PropertyId,
                    status : (PropertyStatus)model.Status,
                    comment : model.Comment
                    );

                if (result == Business.Dto.OperationResult.NotFound)
                {
                    return(NotFound());
                }
                else if (result == Business.Dto.OperationResult.BadRequest)
                {
                    return(BadRequest());
                }

                return(RedirectToAction(nameof(Details), new { id = model.PropertyId }));
            }

            if (Request.IsAjaxRequest())
            {
                return(PartialView(model));
            }
            else
            {
                return(View(model));
            }
        }
        public async Task <IActionResult> Process(long id)
        {
            var property = await _propertyService.GetAsync(id);

            if (property == null)
            {
                return(NotFound());
            }

            var model = new PropertyProcessModel()
            {
                PropertyId = id
            };

            if (Request.IsAjaxRequest())
            {
                return(PartialView(model));
            }
            else
            {
                return(View(model));
            }
        }