/// <summary>
        /// Deletes record from database
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public async Task DeleteAsync(int id)
        {
            try
            {
                var result = await _context.FindAsync <T>(id);

                _context.Set <T>().Remove(result);
                await _context.SaveChangesAsync();
            }
            catch (Exception)
            {
                throw;
            }
        }