Esempio n. 1
0
        public async Task <MessageResponse> DeleteProtocolAsync(int protocolId)
        {
            await _protocolRepository.Delete(protocolId);

            await _unitOfWork.CompleteAsync();

            return(new MessageResponse(true, "Protocol deleted successfully"));
        }
Esempio n. 2
0
 public bool Delete(Protocol model) => protocolRepository.Delete(model);
Esempio n. 3
0
        public void DeleteProtocol(long id)
        {
            var Protocol = _repo.Find(id);

            _repo.Delete(Protocol);
        }