/// <summary>
        /// searches the database with the provided parameter
        /// if an entry is found, delete the matching data and return the deleted data
        /// </summary>
        /// <param name="DataId"></param>
        /// <returns></returns>
        public UploadedData DeleteUploadedData(int DataId)
        {
            UploadedData uploadedData = context.UploadedDatas.Find(DataId);

            if (uploadedData != null)
            {
                context.UploadedDatas.Remove(uploadedData);
                context.SaveChanges();
            }
            return(uploadedData);
        }
 /// <summary>
 /// gets the validated data from UploadedData and saves it; returns the saved data
 /// </summary>
 /// <param name="uploadedData"></param>
 /// <returns></returns>
 public UploadedData UploadData(UploadedData uploadedData)
 {
     context.UploadedDatas.Add(uploadedData);
     context.SaveChanges();
     return(uploadedData);
 }