Beispiel #1
0
        /// <summary>
        /// You can update a person properties except its id
        /// </summary>
        /// <param name="person">person id need to be valid</param>
        /// <returns>Returns the updated person</returns>
        public Person UpdatePerson(Person person)
        {
            Person updatedPerson = CommonPersonManager.CommonUpdatePerson(person, JsonDataBase);

            JsonDataBase.CreateJson(filePath);
            return(updatedPerson);
        }
        /// <summary>
        /// You can update a person properties except its id
        /// </summary>
        /// <param name="person">person id need to be valid</param>
        /// <returns>Returns the updated Person</returns>
        public Person UpdatePerson(Person person)
        {
            Person selectedPerson = CommonPersonManager.CommonUpdatePerson(person, CSVDataBase);

            CSVDataBase.CreateCSV(filePath);
            return(selectedPerson);
        }
        /// <summary>
        /// You can update a person properties except its id
        /// </summary>
        /// <param name="person">person id need to be valid</param>
        /// <returns></returns>
        public Person UpdatePerson(Person person)
        {
            Person updatedperson = CommonPersonManager.CommonUpdatePerson(person, TxtDBdatabase);

            TxtDBdatabase.CreateTxt(filePath);
            return(updatedperson);
        }
        public Person UpdatePerson(Person person)
        {
            var updatedPerson = CommonPersonManager.CommonUpdatePerson(person, BinaryDatabase);

            BinaryDatabase.CreateBinarty(filePath);
            return(updatedPerson);
        }
Beispiel #5
0
        /// <summary>
        /// You can update an exiting person's properties except its id
        /// </summary>
        /// <param name="person">person id need to be valid</param>
        /// <returns></returns>
        public Person UpdatePerson(Person person)
        {
            Person updatePerson = CommonPersonManager.CommonUpdatePerson(person, TomlDataBase);
            People people       = new People
            {
                Persons = TomlDataBase
            };

            people.CreateToml(filePath);
            return(updatePerson);
        }