public JsonResult Save(PersonalInformationModel personalInformation, bool isInsert)
        {
            if (isInsert)
            {
                personalInformation.SetCreateProperties(LoginInformation.UserInformation.Id);
                personalInformation.Id = _personalInformationService.Insert(personalInformation);
            }
            else
            {
                personalInformation.SetUpdateProperties(LoginInformation.UserInformation.Id);
                _personalInformationService.Update(personalInformation);
            }

            foreach (string file in Request.Files)
            {
                var hpf = Request.Files[file] as HttpPostedFileBase;
                if (hpf.ContentLength == 0)
                {
                    continue;
                }

                string savedFileName = Path.Combine(Server.MapPath("~/App_Data"), Path.GetFileName(hpf.FileName));
                hpf.SaveAs(savedFileName); // Save the file

                //r.Add(new ViewDataUploadFilesResult()
                //{
                //    Name = hpf.FileName,
                //    Length = hpf.ContentLength,
                //    Type = hpf.ContentType
                //});
            }

            personalInformation.Address.PersonId = personalInformation.Id;

            if (personalInformation.Address.Id == 0)
            {
                personalInformation.Address.SetCreateProperties(LoginInformation.UserInformation.Id);
                _addressService.Insert(personalInformation.Address);
            }
            else
            {
                personalInformation.Address.SetUpdateProperties(LoginInformation.UserInformation.Id);
                _addressService.Update(personalInformation.Address);
            }

            return(new JsonResult {
                Data = _personalInformationService.GetById(personalInformation.Id)
            });
        }