Beispiel #1
0
        public async Task <IActionResult> DeleteContact(string Id)
        {
            if (string.IsNullOrEmpty(Id))
            {
                return(NotFound());
            }
            await _monogDBService.Remove(Id, "Contacts");

            return(Ok());
        }
        public async Task <IActionResult> DeleteCompany(string Id)
        {
            if (string.IsNullOrEmpty(Id))
            {
                return(NotFound());
            }
            await _companyService.Remove(Id, "Companies");

            return(Ok());
        }