ASP.NET_Core_SPAs.API.ContactsApiController.ContactExists C# (CSharp) Method

ContactExists() private method

private ContactExists ( int id ) : bool
id int
return bool
        private bool ContactExists(int id)
        {
            return _context.Contacts.Count(e => e.Id == id) > 0;
        }