public void CreatePerson(string firstName, string lastName, string userId, string mobileNo, string joinDate, bool isActive)
 {
     //Note 123456 seed number should be avoided or stored in config file. If I delete any account then I might end up duplicating the account number.
     var accountNumber = (123456 + db.Persons.Count()).ToString().PadLeft(10, '0');
     var person = new Person
     {
         AccountNumber = accountNumber,
         //AccountNumber = "0000123456",
         FirstName = firstName,
         LastName = lastName,
         MobileNo = mobileNo,
         JoinDate = joinDate,
         IsActive = isActive,
         ApplicationUserId = userId
     };
     db.Persons.Add(person);
     db.SaveChanges();
 }
        //
        // GET: /Person/Details
        public ActionResult Details()
        {
            //in-memory test account as no database
            var person = new Person
            {
                AccountNumber = "0000123456",
                FirstName = "Arvind",
                LastName = "Kumar",
                Address = "25 Oxford Street, Homebush, Sydney, NSW 2000",
                MobileNo = "0422333444",
                Landline = "91114343",
                OtherNo = "",
                Email = "*****@*****.**",
                FaxNo = "92223232",
                FacebookId = "efarming",
                ViberNo = "0422333444",
                WhatsAppNo = "0422333444",
                Picture = "~/images/member/1.jpg",
                JoinDate = "12/11/2012",
                EndDate = "",
                AlternateContactFirstName = "Arvind",
                AlternateContactLastName = "Kumar",
                IsCoreTeamMember = true,
                IsActive = true,
                Comment = "This is core team member",

                VechileRegoNo = "UP32 3232",
                VechileMake = "Fiat",
                AveragePerKM = "7",

                IsChowkidar = false,
                IsSupplier = false,

                IsMember = true,
                MemberNo = "",
                IsResidentialProofChecked = true,
                SupportingDocuments = ""
            };
            return View(person);
        }