/// <summary> /// Delete attachment with id /// </summary> /// <param name="attachmentId"></param> public void DeleteAttachmentById(int attachmentId) { AttachmentDomain attachmentDomain = _attachmentRepository.GetById(attachmentId); if (attachmentDomain == null) { throw new NsiArgumentException(NotificationMessages.AttachmentWithIdDoesNotExist); } _attachmentRepository.DeleteById(attachmentId); }
public bool DeleteById(int id) { return(rep.DeleteById(id)); }