public ActionResult DeleteProfile([FromRoute, Required] string profileId) { var existingDeviceProfile = _dlnaManager.GetProfile(profileId); if (existingDeviceProfile == null) { return(NotFound()); } _dlnaManager.DeleteProfile(profileId); return(NoContent()); }
public void Delete(DeleteProfile request) { _dlnaManager.DeleteProfile(request.Id); }