public static bool UpdateContact(DTOContact Contact)
        {
            try
            {
                DTOContacts availableContacts = GetContacts();
                DTOContact  ContactToUpdate   = availableContacts.Contacts.FirstOrDefault <DTOContact>(ct => ct.ContactId == Contact.ContactId);
                ContactToUpdate.EMailId    = Contact.EMailId;
                ContactToUpdate.FirstName  = Contact.FirstName;
                ContactToUpdate.HNo        = Contact.HNo;
                ContactToUpdate.ImagePath  = Contact.ImagePath;
                ContactToUpdate.LastName   = Contact.LastName;
                ContactToUpdate.PIN        = Contact.PIN;
                ContactToUpdate.RoadNo     = Contact.RoadNo;
                ContactToUpdate.State      = Contact.State;
                ContactToUpdate.Street     = Contact.Street;
                ContactToUpdate.ModifiedOn = DateTime.Now;
                SaveContacts(availableContacts.Contacts);
                return(true);
            }
            catch
            {
                // Throw exception

                return(false);
            }
        }
        public static bool DeleteContact(DTOContact Contact)
        {
            try
            {
                DTOContacts availableContacts = GetContacts();
                DTOContact  ContactToDelete   = availableContacts.Contacts.FirstOrDefault <DTOContact>(ct => ct.ContactId == Contact.ContactId);
                if (ContactToDelete == null)
                {
                    return(false);
                }
                else
                {
                    availableContacts.Contacts.Remove(ContactToDelete);
                    availableContacts.ContactsCount = availableContacts.Contacts.Count;
                    SaveContacts(availableContacts.Contacts);
                    return(true);
                }
            }
            catch
            {
                // Throw exception

                return(false);
            }
        }
        public static bool AddNewContact(DTOContact Contact)
        {
            try
            {
                DTOContacts availableContacts = GetContacts();
                availableContacts.Contacts.Add(Contact);
                availableContacts.ContactsCount = availableContacts.Contacts.Count;
                SaveContacts(availableContacts.Contacts);
                return(true);
            }
            catch (Exception ex)
            {
                // Throw exception

                return(false);
            }
        }