public ActionResult CreateDepositInterest(FormCollection form)
        {
            var interestMasterDto = ReadFormData(form);
            var resultDto         = new ResultDto();

            LoadDropDowns();
            if (interestMasterDto.InterestID == 0)
            {
                resultDto = _interestService.Insert(interestMasterDto, Enums.InterestTypes.D);
            }
            else
            {
                resultDto = _interestService.Update(interestMasterDto, Enums.InterestTypes.D);
            }

            if (resultDto.ObjectId > 0)
            {
                //LoadDropDowns();
                interestMasterDto = _interestService.GetByID(resultDto.ObjectId);

                resultDto.ObjectCode = interestMasterDto.InterestCode;
            }
            ViewBag.Result = resultDto;

            return(View(interestMasterDto));
        }
        public async Task <IActionResult> ChangeUserInfo([FromBody] ChangeUserRequest request)
        {
            var user = UserService.GetAll().FirstOrDefault(x =>
                                                           x.Login == request.Name);

            var person = PersonService.GetAll().FirstOrDefault(x =>
                                                               x.User == user);

            var interest = InterestService.GetAll().FirstOrDefault(x =>
                                                                   x.User == user);


            person.Age  = request.Age;
            person.City = request.City;
            PersonService.Update(person);

            interest.Cinema   = request.Interests.Cinema;
            interest.Fishing  = request.Interests.Fishing;
            interest.MakeUp   = request.Interests.MakeUp;
            interest.Manicure = request.Interests.Manicure;
            interest.Sport    = request.Interests.Sport;
            interest.Travel   = request.Interests.Travel;
            InterestService.Update(interest);



            return(Json(new ResponseModel()));
        }